package com.geekcoding.geekoj.dto.request;

import cn.hutool.core.util.StrUtil;
import com.geekcoding.common.exceptions.GeekRuntimeException;
import lombok.Data;

@Data
public class UserChangePwdReq {
    private String oldPassword;
    private String password;
    private String confirmPassword;

    public void check() {
        if(!password.equals(confirmPassword)){
            throw new GeekRuntimeException("确认密码不相同！");
        }
    }
}
